package cz.pproproj.aaservice.ddbmodule.dbaccess;

import cz.pproproj.aaservice.ddbmodule.dbaccess.DBUserDAO;
import cz.pproproj.aaservice.guimodule.model.AuthenticationException;
import cz.pproproj.aaservice.aasbllmodule.authentication.AuthenticationUser;

import java.util.List;

/**
 * @author David
 * @since 17. 1. 2015
 */
public interface DBUsersManagement {
    //todo Javadocs
    String addUser(AuthenticationUser user);

    List<AuthenticationUser> getAllUsers();

    boolean authenticate(AuthenticationUser user) throws AuthenticationException;

    void deleteUser(AuthenticationUser user) throws AuthenticationException;
}
